package com.eol.common.config.converter;


import com.eol.common.utils.StringUtils;

/**
 * Created with IntelliJ IDEA.
 * User: liulinhui
 * Date: 8/7/19
 * Time: 8:11 PM
 * Description: StringToDoubleUtil
 */
public class StringToDoubleUtil {

    public static Double convert(String source) {
        if (StringUtils.isBlank(source)){
            return null;
        }
        return Double.parseDouble(source);
    }
}
